<template>
  <div class="cell-a-box">
    <el-image
      style="width: 100%; height: 100%"
      :src="scopeData.row[tableItem.prop]"
      :fit="'cover'"
      :preview-src-list="[scopeData.row[tableItem.prop]]"
    />
  </div>
</template>

<script>
export default {
  name: 'CellA',
  props: {
    // 单元格数据
    scopeData: {
      type: Object,
      default: () => ({})
    },
    // 单元格配置项
    tableItem: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    return {}
  },
  methods: {
    isUrl(url) {
      const str = new RegExp('http')
      return url ? str.test(url) : false
    }
  }
}
</script>

<style lang="scss" scoped>
.cell-a-box{
    width: 30px;
    height: 30px;
}
</style>
